package operation;

import book.Book;
import book.BookList;

public class ShowOperation implements  IOperation{
    @Override
    public void work(BookList bookList) {
        System.out.println("打印 图书");
        int cur=bookList.getUsedSize();
        for(int i=0;i<cur;i++)
        {
            Book book=bookList.getBook(i);
            System.out.println(book);

        }
    }
}
